package top.yongyan0624.service;

import top.yongyan0624.pojo.Books;

import java.util.List;

/**
 * @author Yongyan
 * @description: TODO
 * @date 2020/12/20
 **/
public interface BookService {
    //新增
    int addBook(Books book);
    //删除
    int deleteBook(int bookID);
    //修改
    int updateBook(Books book);
    //按id查询
    Books queryBookById(int bookID);
    //查询全部
    List<Books> queryBookAll();

    Books queryBookByName(String bookName);
}
